import request from '@/utils/request'

// 仓库出入库分页
export function getList(params) {
  return request({
    url: '/warehouseStorage/list',
    method: 'POST',
    params
  })
}

// 新增仓库出入库
export function addWarehousedetail(data) {
  return request({
    url: '/warehouseStorage/add',
    method: 'POST',
    data
  })
}

// 查询
export function selectWarehousedetail(params) {
  return request({
    url: '/warehouseStorage/load',
    method: 'POST',
    params
  })
}

// 删除仓库出入库
export function deleteWarehousedetail(data) {
  return request({
    url: '/warehouseStorage/delete',
    method: 'post',
    data
  })
}

// 修改仓库出入库
export function updateWarehousedetail(data) {
  return request({
    url: '/warehouseStorage/update',
    method: 'post',
    data
  })
}
